🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / repository / src / commonMain / kotlin / org / meshtastic / core / repository / MessagingController.kt
Displaying Raw • Download
core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/MessagingController.kt bf929c20f274232e0eb8ddc19b2dc82403e99e5b (bf929c20) Text, 1.87 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository
Tff7b72import T7ee787org.meshtastic.core.model.DataPacket
Tff7b72import T7ee787org.meshtastic.proto.SharedContact
T8b949e/**
* Messaging operations — sending data packets, reactions, and shared contacts.
*
* Mirrors the SDK's send/messaging surface. When the SDK is adopted, implementations delegate to `RadioClient.send()` /
* `RadioClient.sendText()`.
*
* @see RadioController which extends this interface for backward compatibility
*/
Tff7b72interface T56d364MessagingController Tb4b4b4{
T8b949e/** Sends a data packet to the mesh. */
Tff7b72suspend Tff7b72fun Td2a8ffsendMessageTb4b4b4(Te6edf3packetTb4b4b4: Te6edf3DataPacketTb4b4b4)
T8b949e/** Sends an emoji reaction to a message. Awaits local DB persistence. */
Tff7b72suspend Tff7b72fun Td2a8ffsendReactionTb4b4b4(Te6edf3emojiTb4b4b4: Tffa657StringTb4b4b4, Te6edf3replyIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3contactKeyTb4b4b4: Tffa657StringTb4b4b4)
T8b949e/** Imports a shared contact into the firmware's NodeDB. */
Tff7b72suspend Tff7b72fun Td2a8ffimportContactTb4b4b4(Te6edf3contactTb4b4b4: Te6edf3SharedContactTb4b4b4)
T8b949e/**
* Sends our shared contact information (identity and public key) to the firmware's NodeDB.
*
* @param nodeNum The destination node number.
* @return `true` if the radio accepted the contact, `false` on timeout or failure.
*/
Tff7b72suspend Tff7b72fun Td2a8ffsendSharedContactTb4b4b4(Te6edf3nodeNumTb4b4b4: Tffa657IntTb4b4b4)Tb4b4b4: Tffa657Boolean
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s